//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_delivery_request.js中编写
//************************************************
export default function () {
	return {
		editFormFields: {},
		editFormOptions: [],
		searchFormFields: { Voucher_sub: '', Sales_contract_sub: '', AuditStatus: '' },
		searchFormOptions: [
			{ title: '销售合同', field: 'Sales_contract_sub' },
			{ type: 'group' },
			{ title: '单据编码', field: 'Voucher_sub', type: 'like' },
			{ key: 'audit', data: [], title: '审核状态', field: 'AuditStatus', type: 'select' }
		],
		columns: [
			{ field: 'Voucher_sub', title: '单据编码', type: 'string', link: true },
			{ field: 'Sales_contract_sub', title: '销售合同', type: 'string' },
			{ field: 'AuditStatus', title: '审核状态', type: 'int', bind: { key: 'audit', data: [] } },
			{ field: 'Attachment', title: '附件', type: 'file' },
			{ field: 'Image', title: '图片', type: 'img' },
			{ field: 'CreateDate', title: '创建时间', type: 'datetime' },
			{field:'Client',title:'客户',type:'int',bind:{ key:'无条件客户',data:[]},width:120,align:'left'},
			{field:'Project_name',title:'项目名称',type:'string',width:220,align:'left'},
			{field:'deliveryTime',title:'发货时间',type:'date',width:150,align:'left',sort:true},
			{field:'Delivery_address',title:'交付地址',type:'string',width:110,align:'left'},
			{ field: 'Remark', title: '备注', type: 'string' }
		],

		table: {
			key: 'Delivery_request',
			footer: 'Foots',
			cnName: '发货申请单',
			name: 'q_delivery_request',
			url: '/q_delivery_request/',
			sortName: 'Voucher_sub'
		}
	};
}
